var http = require('./require.js');
module.exports = {
  Login(data) {
    return http.PostAxis('/api/SystemMoule/Account/login', data)
  },
  WxLogin(openId) {
    return http.PostAxis('/api/SystemMoule/Account/WxLogin?appName=system&openId=' + openId)
  },
  WxAuthCode(code) {
    return http.PostAxis('/api/SystemMoule/Account/WxAuthCode?appName=system&code=' + code)
  },
  WxUnBind(data) {
    return http.PostAxis('/api/SystemMoule/Account/WxUnBind?appName=system', data)
  },
  WxBind(data) {
    return http.PostAxis('/api/SystemMoule/Account/WxBind?appName=system&openId=' + data.openId + '&username=' + data.username + '&password=' + data.password, data)
  },
  GetInfo() {
    return http.GetAxis('/api/SystemMoule/PSysUser/UserInfo')
  },
  Logout() {
    return http.GetAxis('/api/SystemMoule/Account/LoginOut')
  },
  UpdatePwd(data) {
    return http.PostAxis('/api/SystemMoule/PSysUser/UpdatePwd', data)
  },
  GetUser(data) {
    return http.GetAxis('/api/SystemMoule/PSysUser/PSysUserPageList', data)
  },
  GetPCode(data) {
    return http.GetAxis('/api/SystemMoule/PCode/GetPCode', data)
  },
  GetPCodes(data){
    return http.PostAxis('/api/SystemMoule/PCode/GetPCode_S', data)
  },
  GetPCodeList(data) {
    return http.PostAxis('/api/SystemMoule/PCode/List', data)
  },
  // 发送通知
  SendMsg(data) {
    return http.PostAxis('/api/SystemMoule/PMsgSend/SendMsg', data)
  },
  // 获取通知
  GetMsgList(data) {
    return http.GetAxis('/api/SystemMoule/PMsgSend/GetMsgPageList', data)
  },
  // 更改通知状态
  ChangeMsgStatus(data) {
    return http.PostAxis('/api/SystemMoule/PMsgSend/ChangeMsgStatus', data)
  },
  // 更改所有通知状态
  ChangeAllStatus(data) {
    return http.PostAxis('/api/SystemMoule/PMsgSend/ChangeAllStatus', data)
  },
  // 获取通知详情
  GetNotice(noticeId) {
    return http.GetAxis('/api/SystemMoule/Notice/GetNotice?noticeId=' + noticeId)
  },
  // 获取维修所树
  GetRepairDeptListTree() {
    return http.GetAxis('/api/SystemMoule/ODept/GetRepairDeptListTree')
  },
  GetRepairLogList(data) {
    return http.PostAxis('/wx/api/repair/GetRepairLogList', data)
  },
  AcceptRepair(data) {
    return http.PostAxis('/wx/api/repair/AcceptRepair', data)
  },
  TranspondRepair(data) {
    return http.PostAxis('/wx/api/repair/TranspondRepair', data)
  },
  GetDeptListTree(data) {
    return http.GetAxis('/api/SystemMoule/ODept/GetDeptListTree', data)
  },
  GetAppMenu(data) {
    return http.PostAxis('/api/SystemMoule/PSysUser/GetAppMenu',data)
  },
  GetDropDownList_Page(data) {
    return http.PostAxis('/api/dropdown/GetDropDownList_Page',data)
  },
  GetSysDeptTree(data) {
    return http.PostAxis('/api/SystemMoule/HeatArea/GetSysDeptTree',data)
  },
}